package com.laxcen.smoke.service;

import com.github.pagehelper.PageInfo;
import com.laxcen.smoke.dto.res.*;
import com.laxcen.smoke.entity.PickCode;
import com.laxcen.smoke.util.Response;
import org.springframework.web.multipart.MultipartFile;

import java.text.ParseException;


public interface IssueService {

    Response insert(String versionno, String versiondes, MultipartFile file);

    Response update(String id, String versionno, String versiondes, MultipartFile file);

    Response delete(String id);

    Response<PageInfo<AppManageListRes>> getListAll(int pageNo, int pageSize);

    Response<PageInfo<AppRecordRes>> getRecordList(int pageNo, int pageSize);

    Response<PageInfo<AppStatusRes>> getStatusList(int pageNo, int pageSize);

    Response<PageInfo<AppManageListRes>> getListByTab(String starttime, String endtime, int pageNo, int pageSize) throws ParseException;

    Response upGradeOne(String smartno, String versionno, int issueway, String issuetime);

    Response upGradeAll(String smartno, String versionno, int issueway, String issuetime);

    Response<PageInfo<AppUpGradeListRes>> getAppUpGradeAllList(int pageNo, int pageSize);

    Response<PageInfo<AppUpGradeListRes>> getAppUpGradeListByTab(String versionno, String starttime, String endtime, int pageNo, int pageSize) throws ParseException;

    Response verify(int verifynum, double verifymovetime);

    Response setpassword(String smartno, String password, int roleflag, String province, String city, String area);

    Response<PageInfo<SmartPasswordRes>> getsmartpasswordlist(int pageNo, int pageSize, int roleflag, String province, String city, String area);


    Response<PageInfo<PickCode>> getVerifyList(int pageNo, int pageSize);

}
